package com.zhentao.tot.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhentao.tot.mapper.ApUserFollowMapper;
import com.zhentao.tot.domain.ApUserFollow;
import com.zhentao.tot.service.IApUserFollowService;

/**
 * 用户关注信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-18
 */
@Service
public class ApUserFollowServiceImpl implements IApUserFollowService 
{
    @Autowired
    private ApUserFollowMapper apUserFollowMapper;

    /**
     * 查询用户关注信息
     * 
     * @param id 用户关注信息主键
     * @return 用户关注信息
     */
    @Override
    public ApUserFollow selectApUserFollowById(Integer id)
    {
        return apUserFollowMapper.selectApUserFollowById(id);
    }

    /**
     * 查询用户关注信息列表
     * 
     * @param apUserFollow 用户关注信息
     * @return 用户关注信息
     */
    @Override
    public List<ApUserFollow> selectApUserFollowList(ApUserFollow apUserFollow)
    {
        return apUserFollowMapper.selectApUserFollowList(apUserFollow);
    }

    /**
     * 新增用户关注信息
     * 
     * @param apUserFollow 用户关注信息
     * @return 结果
     */
    @Override
    public int insertApUserFollow(ApUserFollow apUserFollow)
    {
        return apUserFollowMapper.insertApUserFollow(apUserFollow);
    }

    /**
     * 修改用户关注信息
     * 
     * @param apUserFollow 用户关注信息
     * @return 结果
     */
    @Override
    public int updateApUserFollow(ApUserFollow apUserFollow)
    {
        return apUserFollowMapper.updateApUserFollow(apUserFollow);
    }

    /**
     * 批量删除用户关注信息
     * 
     * @param ids 需要删除的用户关注信息主键
     * @return 结果
     */
    @Override
    public int deleteApUserFollowByIds(Integer[] ids)
    {
        return apUserFollowMapper.deleteApUserFollowByIds(ids);
    }

    /**
     * 删除用户关注信息信息
     * 
     * @param id 用户关注信息主键
     * @return 结果
     */
    @Override
    public int deleteApUserFollowById(Integer id)
    {
        return apUserFollowMapper.deleteApUserFollowById(id);
    }
}
